package com.changy.ai_tutor_for_dm.mapper;
import com.changy.ai_tutor_for_dm.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UsersMapper {


    @Select("SELECT phone_number, card_id, username, password FROM users WHERE phone_number = #{phoneNumber} AND password = #{password}")
    User search(String phoneNumber, String password);
}
